package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author stylefeng
 * @since 2018-11-19
 */
@TableName("SYS_ROLE")
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId("ID")
    private Long id;
    /**
     * 序号
     */
    @TableField("NUM")
    private Long num;
    /**
     * 父角色id
     */
    @TableField("PID")
    private Long pid;
    /**
     * 角色名称
     */
    @TableField("NAME")
    private String name;
    /**
     * 部门名称
     */
    @TableField("DEPTID")
    private Long deptid;
    /**
     * 提示
     */
    @TableField("TIPS")
    private String tips;
    /**
     * 保留字段(暂时没用）
     */
    @TableField("VERSION")
    private Long version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getDeptid() {
        return deptid;
    }

    public void setDeptid(Long deptid) {
        this.deptid = deptid;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Role{" +
        ", id=" + id +
        ", num=" + num +
        ", pid=" + pid +
        ", name=" + name +
        ", deptid=" + deptid +
        ", tips=" + tips +
        ", version=" + version +
        "}";
    }
}
